package com.example.shorg.service.impl;

import com.example.shorg.dataobject.BannerBean;
import com.example.shorg.repository.BannerRepository;
import com.example.shorg.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerRepository bannerRepository;

    @Override
    public List<BannerBean> findAll() {
        return bannerRepository.findAll();
    }

    @Override
    public BannerBean save(BannerBean bean) {
        return bannerRepository.save(bean);
    }
}
